package 重复的子字符串;

import java.util.Arrays;

public class Test2 {
    public static void main(String[] args) {

        String s = "abacababacab";
        int[] next = new int[s.length()];
        Solution2 solution = new Solution2();
        solution.getNext(next, s);
        System.out.println(Arrays.toString(next));
        boolean b = solution.repeatedSubstringPattern(s);
        System.out.println(b);
    }
}
